package com.dayuanit.dy16.atm.mapper;

import com.dayuanit.dy16.atm.entity.TransferOrder;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TransferOrderMapper {
    int deleteByPrimaryKey(Long id);

    int insert(TransferOrder record);

    int insertSelective(TransferOrder record);

    TransferOrder selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(TransferOrder record);

    int updateByPrimaryKey(TransferOrder record);

    int updateStatus(@Param("orderId") Long orderId,
                     @Param("newStatus") Integer newStatus,
                     @Param("oldStatus") Integer oldStatus);

    List<TransferOrder> listOrders(Integer status);
}